import lshkit
lsh=lshkit.LSH(10,20,5,20,10)
data=[[1,1,1,1,1],[0,0,0,0,0],[1,0,0,0,0],[0,0,0,0,1],[1,1,1,0,0],[1,0,0,0,1],[2,2,2,2,2],[10,10,10,10,10],[10,0,0,0,1],[2,3,4,0,0],[-10,4,0,0,0],[5,5,5,9,30],[1,0,0,10,30],[10,5,6,10,20],[30,20,10,5,6],[-2,-10,-7,8,9]]
lsh.BuildHashIndex(data,10)
for x in lsh.hashtable:
    for y in x:
        print(str(y)+" -- "+str(x[y]))
nn=lsh.QueryIndex([0,0,0,10,30])
print("nearest neighbor ",nn)
